package com.toplabs.unashu.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.toplabs.unashu.entity.Type;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BlogQuery implements Serializable {

    private static final long serialVersionUID = -7852550412302003471L;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String firstPicture; // 首图

    private String title;

    private String flag; // 标记 原创/转载/翻译

    private boolean recommend;

    private boolean commentable;

    private String typeIds;

    private List<Type> types = new ArrayList<>();

    private Date updateTime;
}